const ajax = window.ajaxbusinessAssets;
// const ajax = window.ajaxguoxingyu;

export default {
  //项目详情
  projectList: (param) => ajax.request('/v1/basic/project/project/list', 'post', param, { showLoading: true }),
  projectListNew: (param) => ajax.request('/v1/basic/commercialrent/building/building/list', 'post', param, { showLoading: true }),
  //项目负责人
  managerlist: (params) => ajax.request(`/v1/basic/project/manager/list`, 'post', params, {
    showLoading: false
  }),
  businessgetMessage: (params) => ajax.request(`/v1/rent/process/business/getMessage`, 'post', params, {
    showLoading: false
  }),

  attachmentlist: (params) => ajax.request(`/v1/basic/attachment/attachment/list`, 'post', params, {
    showLoading: false
  }),
  //租赁历史
  rentalHistory: (params) => ajax.request(`/v1/basic/shop/proc/shop/rentalHistory`, 'post', params, {
    showLoading: true
  }),

  //-------------------------------------------------------------------------------------广告资源  
  //----大型广告资源 -已生效
  //查询
  largeadlist: (params) => ajax.request(`/v1/basic/advertising/large/Already/list`, 'post', params, {
    showLoading: false
  }),
  //----大型广告资源 -未生效
  //查询
  // proclargeadlist: (params) => ajax.request(`/v1/basic/adresource/proc/large/ad/list`, 'post', params, {
  //   showLoading: true
  // }),
  proclargeadlist: (params) => ajax.request(`/v1/basic/advertising/proc/list`, 'post', params, {
    showLoading: false
  }),

  //新增
  proclargeadcreate: (params) => ajax.request(`/v1/basic/resource/proc/ad/create`, 'post', params, {
    showLoading: true
  }),
  //删除/拆除
  proclargeaddelete: (params) => ajax.request(`/v1/basic/advertising/proc/delete`, 'post', params, {
    showLoading: true
  }),
  //保存
  // proclargeadupdate: (params) => ajax.request(`/v1/basic/adresource/proc/large/ad/update`, 'post', params, {
  //   showLoading: true
  // }),
  proclargeadupdate: (params) => ajax.request(`/v1/basic/resource/proc/ad/update`, 'post', params, {
    showLoading: true
  }),


  //----楼内广告资源 -已生效
  //查询
  adlist: (params) => ajax.request(`/v1/basic/adresource/ad/list`, 'post', params, {
    showLoading: false
  }),
  //----楼内广告资源 -未生效
  //查询
  procadlist: (params) => ajax.request(`/v1/basic/adresource/proc/ad/list`, 'post', params, {
    showLoading: false
  }),
  //新增
  procadcreate: (params) => ajax.request(`/v1/basic/advertising/proc/ad/create`, 'post', params, {
    showLoading: true
  }),

  //保存
  procadupdate: (params) => ajax.request(`/v1/basic/adresource/proc/ad/update`, 'post', params, {
    showLoading: true
  }),

  //审批列表
  advertisingproclistid: (params) => ajax.request(`/v1/basic/advertising/proc/list/id`, 'post', params, {
    showLoading: true
  }),
  //-------------------------------------------------------------------------------------


  //停车场新增
  apiParkAdd: (params) => ajax.request(`/v1/basic/car/proc/park/create`, 'post', params, {
    showLoading: true
  }),

  //停车场编辑
  apiParkEdit: (params) => ajax.request(`/v1/basic/car/proc/park/update`, 'post', params, {
    showLoading: true
  }),

  //停车场删除
  apiParkDelete: (params) => ajax.request(`/v1/basic/car/proc/park/delete`, 'post', params, {
    showLoading: true
  }),

  //停车提审弹框数据
  apiParkApproInfo: (params) => ajax.request(`/v1/basic/car/proc/park/list/id`, 'post', params, {
    showLoading: true
  }),

  //停车已通过审核最新一条数据
  apiParkList: (params) => ajax.request(`/v1/basic/car/park/Already/list `, 'post', params, {
    showLoading: true
  }),

  //停车草稿数据
  apiParkDraft: (params) => ajax.request(`/v1/basic/car/proc/park/list`, 'post', params, {
    showLoading: true
  }),
  
  //停车场查分区
  apiParkArea: (params) => ajax.request(`/v1/basic/car/park/partition/list`, 'post', params, {
    showLoading: true
  }),

  //其他设施新增
  apiFacilityAdd: (params) => ajax.request(`/v1/basic/station/proc/facility/create`, 'post', params, {
    showLoading: true
  }),

  //其他设施编辑
  apiFacilityEdit: (params) => ajax.request(`/v1/basic/station/proc/facility/update`, 'post', params, {
    showLoading: true
  }),

  //其他设施详情
  apiFacilityInfo: (params) => ajax.request(`/v1/basic/station/proc/station/detail`, 'post', params, {
    showLoading: true
  }),

  //其他设施删除
  apiFacilityDelete: (params) => ajax.request(`/v1/basic/station/proc/facility/delete`, 'post', params, {
    showLoading: true
  }),

  //其他设施审弹框数据
  apiFacilityApproInfo: (params) => ajax.request(`/v1/basic/station/proc/facility/fetch`, 'post', params, {
    showLoading: true
  }),

  //其他设施草稿数据
  apiFacilityDraft: (params) => ajax.request(`/v1/basic/station/proc/facility/list`, 'post', params, {
    showLoading: true
  }),

  //其他设施列表已通过的第一条
  apiFacilityList: (params) => ajax.request(`/v1/basic/station/Already/list`, 'post', params, {
    showLoading: true
  }),

  //点击未生效版本查workid
  getWorkId: (params) => ajax.request(`/v1/basic/workInfo/work/updateResultWorkId`, 'post', params, {
    showLoading: true
  }),
  summitAudit: (params) => ajax.request(`/v1/basic/workInfo/work/summitAudit`, 'post', params, {
    showLoading: true
  }),

  summitAuditAndSuccess: (params) => ajax.request(`/v1/basic/workInfo/work/summitAuditAndSuccess`, 'post', params, {
    showLoading: true
  }),

  createWorkInfo: (params) => ajax.request(`/v1/basic/workInfo/work/createWorkInfo`, 'post', params, {
    showLoading: true
  }),

    //项目列表
  apiAllProjectList: (params) => ajax.request(`/v1/basic/project/project/projectList`, 'post', params, {
    showLoading: true
  }),

  //创建项目 
  apiProjectAdd: (params) => ajax.request(`/v1/basic/project/project/createProject`, 'post', params, {
    showLoading: true
  }),
   //创建项目 
   apiProjectAddNew: (params) => ajax.request(`/v1/basic/project/project/createBuilding`, 'post', params, {
    showLoading: true
  }),
  // 修改项目
  apiProjectUpdate: (params) => ajax.request(`/v1/basic/project/project/updateBuilding`, 'post', params, {
    showLoading: true
  }),
  //项目信息
  apiProjectInfo: (params) => ajax.request(`/v1/basic/project/project/projectDetail`, 'post', params, {
    showLoading: true
  }),

  //项目信息
  apiProjectDetail: (params) => ajax.request(`/v1/business/project/detail`, 'post', params, {
    showLoading: true
  }),

  //项目进度
  apiProjectRate: (params) => ajax.request(`/v1/basic/project/project/progressList`, 'post', params, {
    showLoading: true
  }),
  //资产包
  assetpackagelist: (params) => ajax.request(`/v1/basic/assetpackage/list`, 'post', params, {
    showLoading: true
  }),

  //项目相关的信息下拉框数据源 Ex：项目销售，项目运营，项目物业，项目客服
  apiProjectCorrelation: (params) => ajax.request(`/v1/business/organization/list`, 'post', params, {
    showLoading: true
  }),

  //项目组织关系新增
  apiProjectCorrelationUpdate: (params) => ajax.request(`/v1/business/project/organization/merge`, 'post', params, {
    showLoading: true
  }),

  //项目组织关系详情
  apiProjectCorrelationInfo: (params) => ajax.request(`/v1/business/project/organization/list`, 'post', params, {
    showLoading: true
  }),

  // 项目下楼栋列表
  apiAllBuildList: (params) => ajax.request(`/v1/basic/commercialrent/building/building/list`, 'post', params, {
    showLoading: true
  }),
  //项目列表
  apiAllProjectList: (params) => ajax.request(`/v1/basic/project/project/projectList`, 'post', params, {
    showLoading: true
  }),
  //根据楼栋分区查楼层
  listFloorCar: (params) => ajax.request(`/v1/business/floor/list  `, 'post', params, {
    showLoading: true
  }),
}
